{if $watchedTasksCount > 0}
<div class="block">
	<div class="block_header">Sledované úkoly ({$watchedTasksCount})</div>
	<div class="block_body">
		<div class="block_start"></div>

		<table class="my_tasks">
							  {foreach $watchedTasks as $watch}
			<tr class="my_tasks_task_line" data-id="{$watch->task[id]}" data-id="{$task[id]}" data-status="{$watch->task[task_status_id]}" data-completed="{$watch->task[completed]}" data-creator="{= (int)($user->id == $watch->task[creator_id])}" data-worker="{= (int)($user->id == $watch->task[worker_id])}">
				<td class="my_tasks_priority priority{$watch->task->task_priority[priority]}"></td>
				<td class="my_tasks_project">{$watch->task->project[name]}</td>
				<td class="my_tasks_task_name">{$watch->task[name]}</td>
				<td class="my_tasks_deadline">{if $watch->task[deadline] > 0}{!$watch->task[deadline]|remaining_days}{/if}</td>
				<td class="my_tasks_completed"><div class="my_tasks_completed_graph"><div class="my_tasks_completed_bar" style="width: {$watch->task[completed]}%"></div><div class="my_tasks_completed_text">{$watch->task[completed]}%</div></div></td>
				<td class="my_tasks_actions"><a href="{plink Task:task $watch->task['id']}"><img src="{$basePath}/images/info.png" alt="I"></a> <a href="javascript:void(0)" class="menuImage"><img src="{$basePath}/images/action.png" alt="A"></a></td>
			</tr>
						  {/foreach}
		</table>
		<div class="explanation">
			<div class="exp_priorities">{foreach $priorities as $priority}<div class="exp_priority priority{$priority[priority]}"></div> {$priority[name]} {/foreach}</div>
		</div>

	</div>
</div>
{else}
<!-- No watched tasks -->
{/if}